Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Reducing E2E test sharding #15192

Merged
merged 14 commits into from
May 28, 2024
Merged

chore: Reducing E2E test sharding #15192

merged 14 commits into from
May 28, 2024

Conversation

keithwillcode
Copy link
Contributor

@keithwillcode keithwillcode commented May 24, 2024

What does this PR do?

Removes unnecessary sharding for the smaller E2E test suites. It seems that sharding and parallelism is adding to the flaky problem. Also, having those jobs sharded does nothing for the speed of the test suite.

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected)
  • N/A - I have added a Docs issue here if this PR makes changes that would require a documentation change
  • N/A - I have added or modified automated tests that prove my fix is effective or that my feature works (PRs might be rejected if logical changes are not properly tested)

How should this be tested?

Copy link

vercel bot commented May 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview May 27, 2024 0:59am
cal ⬜️ Ignored (Inspect) Visit Preview May 27, 2024 0:59am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview May 27, 2024 0:59am

Copy link
Contributor

github-actions bot commented May 24, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

Copy link

deploysentinel bot commented May 24, 2024

Current Playwright Test Results Summary

✅ 324 Passing - ⚠️ 2 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 05/27/2024 01:23:03am UTC)

Run Details

Running Workflow All checks on Github Actions

Commit: 1e600be

Started: 05/27/2024 01:20:30am UTC

⚠️ Flakes

📄   apps/web/playwright/hash-my-url.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
hash my url generate url hash
Retry 1Initial Attempt
3.55% (6) 6 / 169 runs
failed over last 7 days
26.04% (44) 44 / 169 runs
flaked over last 7 days

📄   apps/web/playwright/event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Event Types tests -- future user Different Locations Tests can select 'display on booking page' option when multiple organizer input type are present
Retry 1Initial Attempt
0% (0) 0 / 174 runs
failed over last 7 days
9.20% (16) 16 / 174 runs
flaked over last 7 days

View Detailed Build Results


@@ -195,7 +195,11 @@ function getThemeProviderProps(props: {

const isBookingPageThemeSupportRequired = themeSupport === ThemeSupport.Booking;

if ((isBookingPageThemeSupportRequired || props.isEmbedMode) && !props.themeBasis) {
if (
!process.env.NEXT_PUBLIC_IS_E2E &&
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gets rid of hundreds of instances of this message when the E2E suite runs.

@@ -215,7 +215,7 @@ function getThemeProviderProps({
const isBookingPageThemeSupportRequired = themeSupport === ThemeSupport.Booking;
const themeBasis = props.themeBasis;

if ((isBookingPageThemeSupportRequired || isEmbedMode) && !themeBasis) {
if (!process.env.NEXT_PUBLIC_IS_E2E && (isBookingPageThemeSupportRequired || isEmbedMode) && !themeBasis) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gets rid of hundreds of instances of this message when the E2E suite runs.

@keithwillcode keithwillcode marked this pull request as ready for review May 26, 2024 23:23
@dosubot dosubot bot added automated-tests area: unit tests, e2e tests, playwright ci area: CI, DX, pipeline, github actions labels May 26, 2024
@keithwillcode keithwillcode changed the title chore: Removing E2E test sharding chore: Reducing E2E test sharding May 27, 2024
Copy link
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@emrysal emrysal added this pull request to the merge queue May 28, 2024
Merged via the queue into main with commit 2c8c836 May 28, 2024
59 checks passed
@emrysal emrysal deleted the chore/remove-test-sharding branch May 28, 2024 21:08
p6l-richard pushed a commit to p6l-richard/cal.com-fork that referenced this pull request Jul 22, 2024
* chore: Removing E2E test sharding

* Added back 4 shards for main E2E

* Bump build machines to use 8vCPUs

* Downgrading builds to 2 vCPUs to see time difference

* Reduced shards to 2 to see if flakes are reduced

* Increased E2E vCPUs

* Put builds back to 4 vCPUs since they need it

* Updated E2E suite to use 16 vCPUs and no sharding

* Not running in parallel just to test

* Put back the parallelism

* Get rid of themeBasis warning in test suite

* Skipping another flaky test

* 2 shards

* Update e2e.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated-tests area: unit tests, e2e tests, playwright ci area: CI, DX, pipeline, github actions core area: core, team members only foundation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants